﻿@model SuperiorModel.TPagedModelList<SuperiorModel.OrderModel>
<table class="layui-table" id="AppList" lay-filter="test">
    <thead>
        <tr>
            <th>订单编号</th>
            <th>商户账号</th>
            <th>所属商城</th>
            <th>商城类型</th>
            <th>用户昵称</th>
            <th>订单金额</th>
            <th>创建时间</th>
            <th>订单状态</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model.TList)
        {
            <tr>
                <td>@item.OrderNo</td>
                <td>@item.LoginName</td>
                <td>@item.ShopName</td>
                <td>@(item.AppType == 1 ? "小程序" : "H5")</td>
                <td>@item.NickName</td>
                <td>@item.RealityAmount</td>
                <td>@item.CreateTime.ToString("yyyy-MM-dd HH:mm:ss")</td>
                <td>

                    @switch (item.OrderStatus)
                    {
                        case 0:
                            <span style="">待付款</span>
                            break;
                        case 1:
                            <span style="color:green">（已发货）订单成功</span>
                            break;
                        case 2:
                            <span style="color:red">订单失败</span>
                            break;
                        case 3:
                            <span style="color:darkmagenta">已付款</span>
                            break;
                        case 4:
                            <span style="color:burlywood">申请售后</span>
                            break;
                    }
                </td>
                <td>
                    <a class="layui-btn layui-btn-normal layui-btn-xs layui-btn-mini" href="/Order/Detail?orderid=@item.Id">详情</a>
                   

                </td>
            </tr>
        }
    </tbody>
</table>
@Html.Partial("_TPager", Model.PagingResult)